import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

// Quasar 组件库
import { Quasar, Notify, Loading, LoadingBar } from 'quasar'
import '@quasar/extras/material-icons/material-icons.css'
import 'quasar/src/css/index.sass'

// ElementPlus 组件库
// ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/element.scss'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//  注册的全局函数
import registerGlobalData from '@/global/registerGlobalData'

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(registerGlobalData)
app.use(ElementPlus, {
  locale: zhCn // 中文
})
app.use(Quasar, {
  plugins: { Notify, Loading, LoadingBar }
})

app.mount('#app')
